package aop.annotation;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;

/**
 * @date 2020/5/3 12:44
 */
//配置类，会被加载到Spring
@Configuration()
@ComponentScan()
//允许使用AOP
@EnableAspectJAutoProxy
@Import(A.class)
//开启CGLIB代理，默认是false
//@EnableAspectJAutoProxy(proxyTargetClass=true)
public class Config {
}
